home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / prog / dasv10_.arj / DSPLYDAM.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-09  |  364 b   |  14 lines

  1. // dice.lib function display_damage()
  2. #include <iostream.h>
  3.  
  4. void display_damage(int damage,int normal,int totaldice)
  5. {
  6.     if (damage == 0)
  7.         cout<<"Body damage is "<<totaldice<<"\t\t\t";
  8.     if (damage == 1) {
  9.         cout<<"Stun damage is "<<totaldice;
  10.         cout<<"   Body damage is "<<normal;
  11.     }
  12.     if (damage == 2)
  13.         cout<<"3D6 roll is "<<totaldice<<"\t\t\t\t";
  14. }